interface FetchProjectsAPIResData {
  code: number
  msg: string
  time: string
  data: {
    data: Project[]
    current_page: number
    total: number
    per_page: number
    last_page: number
  }
}

interface FetchProjectsAPIParams {
  page: string
  limit: string
}

export function fetchProjectsAPI(params: FetchProjectsAPIParams) {
  return httpInstance.get<FetchProjectsAPIResData, FetchProjectsAPIParams>(
    '/api/team/serverprojectlist',
    { params },
  )
}
